//
//  MvListModel.m
//  NewMusic
//
//  Created by dllo on 15/11/20.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "MvListModel.h"

@implementation MvListModel
-(instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
     if ([key isEqualToString:@"url"]) {
        self.urlStr = [NSString stringWithFormat:@"%@",value];
    }
}
-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"videoId"]) {
        self.videoId = [NSString stringWithFormat:@"%@",value];
    }else if ([key isEqualToString:@"size"]) {
    self.size = [NSString stringWithFormat:@"%@",value];
    }else if ([key isEqualToString:@"type"]) {
    self.type = [NSString stringWithFormat:@"%@",value];
    }else {
        [super setValue:value forKey:key];
    }
}
@end
